//
//  RDeliverySDK+BizData.h
//  RDelivery
//
//  Created by selmerzhang on 2022/1/5.
//  Copyright © 2022 Tencent. All rights reserved.
//

#import "RDeliverySDK.h"
#import "RDeliverySystemBizDataDelegate.h"
#import "RDeliverySDKSettings+Private.h"

NS_ASSUME_NONNULL_BEGIN

@interface RDeliverySDK (BizData)

/// 设置其他封装RDeliverySDK的系统的业务数据delegate，如TAB
- (void)setSystemBizDataDelegate:(id<RDeliverySystemBizDataDelegate>)delegate;

/// 添加OR修改模型参数
- (void)setModelParamValue:(NSString * _Nullable)value
                       key:(NSString *)key;

/// 添加额外参数
- (void)setExtraParamValue:(NSString * _Nullable)value
                       key:(NSString *)key;

/// 切换域名环境
/// 当环境变化，且 updateMode 包含 RDCONFIG_UPDATE_MODE_APP_START 时，SDK 会自动发起请求
///
/// - Parameter environment: 环境
- (void)switchHostEnviroment:(RDConfigEnvironment)environment;
@end

@interface RDeliverySDK (Report)

/// 最近一次请求体
- (NSString *)lastPullJsonBody;

@end

NS_ASSUME_NONNULL_END
